Skip to content

OpenConceptLab/ocl_online#327 | Links to TBv3 go to app.<env>, not app.v3.<env> - #142

Merged
snyaggarwal merged 1 commit into
mainfrom
ocl_online-327-tbv3-link-app
Dec 1, 2026
Merged

snyaggarwal merged 1 commit into
mainfrom
ocl_online-327-tbv3-link-app

Conversation

@snyaggarwal

Copy link
Copy Markdown
Contributor

TBv3 is now the default Term Browser at app.<env>, and app.v3.<env> only redirects there (302). Every Mapper link to TBv3 still built app.v3.<env>, so each click took a redirect hop.

Change (src/common/appUrls.js)

  • resolveIntegratedV3URL maps an official Mapper host map[.<env>] to app[.<env>] instead of app.v3[.<env>].
  • PRODUCTION_TERMBROWSER_URL (the default for custom hosts) is https://app.openconceptlab.org.
  • All TBv3 links go through getV3URL/toV3URL, so they all pick this up: the left menu, owner, entity and repo-version chips, breadcrumbs, header search, the logo, user menu and create menu, and the "open in TermBrowser" links on concepts, bridge concepts, configuration, imports and logs.

No change to sign-in hand-offs: isOtherOCLClientURL already accepts referrers from TBv3 on app.<env> (through isV2URL's https://app. check), and isV3URL still accepts app.v3 for links from pages opened on the old host.

Checks

  • npm test: 823 pass. The appUrls tests now expect app[.<env>] for production, qa, staging and staging.who.
  • CI eslint is clean.

🤖 Generated with Claude Code

…TBv3 now is, not app.v3.<env>

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@snyaggarwal

Copy link
Copy Markdown
Contributor Author

Quick pass: ready to merge

  • Mapping: map[.<env>] → app[.<env>] through the anchored OFFICIAL_MAPPER_ORIGIN. A configured TERMBROWSER_URL still wins, and custom hosts default to app.openconceptlab.org. CI is green (lint and test, Snyk).
  • Coverage: every TBv3 link goes through getV3URL/toV3URL, and no other app.v3 link target is left in src.
  • Sign-in hand-off is unaffected. isOtherOCLClientURL accepts referrers from TBv3 on app.<env> through isV2URL's https://app. check.
  • Nit: map.demo and map.dev now link to app.demo and app.dev, where TBv2 runs (scaled to 0). There's no TBv3 in demo or dev, so app.v3.demo and app.v3.dev didn't work either.

🤖 Generated with Claude Code

@snyaggarwal
snyaggarwal merged commit 1aa7f75 into main Dec 1, 2026
2 checks passed
@snyaggarwal
snyaggarwal deleted the ocl_online-327-tbv3-link-app branch December 1, 2026 09:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant